#pragma once

#include "Menu.h"
#include "IPanelDelegate.h"

class Team;
class People;

class PlayerMenu : public Menu, public IPanelDelegate
{
public:
	PlayerMenu(MenuManager* const i_menuManager);
	~PlayerMenu(void);

	void Draw() const;
	bool Input(const STL::string& i_input);
	void SetPlayer(People* const i_player){m_player = i_player;}
	void OnEnter();
	void PanelWillClose(bool result);

private:
	void ShowPlayer() const;

	People* m_player;
	Team* m_playerTeam;

	bool m_canBuy;
	bool m_canHandle;
	bool m_notAIMatch;

	int m_waitState;

	enum EWaitState
	{
		NONE,
		CANTSELL,
		SELLING,
	};
};

